﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Item.Master" AutoEventWireup="true"
    CodeBehind="HelpPopup.aspx.cs" Inherits="SGDemo.Permission.HelpPopup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="HelpPopup.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
    <div class="ui-wrapper">
        <div id="Div1" class="ui-content-item ui-content-item-selected">
            <table>
                <tr>
                    <td valign="middle">
                        <dx:ASPxLabel ID="lblPerContactClass" runat="server" Text="选择帮助类别:" AssociatedControlID="glkuplist" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxTreeList ID="tlList" Width="800px" ClientInstanceName="tlList" KeyFieldName="Keyid"
                            DataSourceID="odsList" ParentFieldName="ParentKeyid" OnCustomCallback="tlList_CustomCallback"
                            runat="server">
                            <%--DataSourceID="odsList"--%>
                            <Columns>
                                <dx:TreeListDataColumn FieldName="Keyid" Visible="false" />
                                <dx:TreeListDataColumn FieldName="ParentKeyid" Visible="false" />
                                <dx:TreeListDataColumn FieldName="HelpCategoryName" VisibleIndex="1" Caption="文档类别名称" />
                                <dx:TreeListDataColumn FieldName="HelpCategoryCode" VisibleIndex="2" Caption="文档类别编码" />
                                <dx:TreeListDataColumn FieldName="Order" VisibleIndex="3" Caption="排序" />
                            </Columns>
                            <SettingsPager Mode="ShowAllNodes" />
                            <Styles>
                                <PagerTopPanel>
                                    <BorderBottom BorderStyle="Solid" />
                                </PagerTopPanel>
                                <PagerBottomPanel>
                                    <BorderTop BorderStyle="Solid" />
                                </PagerBottomPanel>
                                <AlternatingNode Enabled="true" />
                            </Styles>
                            <Settings GridLines="Both" />
                            <SettingsBehavior AllowFocusedNode="true" AutoExpandAllNodes="true" />
                            <SettingsLoadingPanel Text="加载中..." />
                        </dx:ASPxTreeList>
                        <%--数据源控件--%>
                        <asp:ObjectDataSource ID="odsList" runat="server" TypeName="SGDemo.Permission.HelpCategoryListDateSource"
                            SelectMethod="FilteredGetAll">
                            <SelectParameters>
                                <asp:ControlParameter Name="filterConditions" Type="String" ControlID="hfFilterCondition"
                                    PropertyName="Value" ConvertEmptyStringToNull="false" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <%--存储过滤条件--%>
                        <asp:HiddenField ID="hfFilterCondition" ClientIDMode="Static" runat="server" Value=" " />
                        <ul class="sl-floatcenter clearfix">
                            <li class="sl-floatcenter-item">
                                <dx:ASPxButton ID="doSelectPer" ClientInstanceName="doSelectPer" runat="server" Text="确 定"
                                    AutoPostBack="false">
                                    <ClientSideEvents Click="doAddHelpClass" />
                                </dx:ASPxButton>
                            </li>
                            <li class="sl-floatcenter-item">
                                <dx:ASPxButton ID="btnClose" ClientInstanceName="btnClose" runat="server" Text="关 闭"
                                    AutoPostBack="false">
                                    <ClientSideEvents Click="doClose" />
                                </dx:ASPxButton>
                            </li>
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
